<?php 


// var_dump($_COOKIE);

// setcookie('name',serialize(['age'=>'18','sex'=>"男"]),time()+3600);

session_start();

// setcookie(session_name(),session_id(),time()+3600);

$_SESSION['name'] = ['age'=>18,'sex'=>'男'];





 ?>